package com.soloyogame.anitoys.util;

import java.io.IOException;


public class Base64Tool {
	public static String encode(String strSrc,String encode){
		String strOut="";
		try {
			strOut=new String(Base64Encoder.encode(strSrc.getBytes(encode))).replaceAll("\n", "");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return strOut;
	}
	public static String encode(byte[] bytes){
		String strOut="";
		try {
			strOut=new String(Base64Encoder.encode(bytes)).replaceAll("\n", "");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return strOut;
	}
	public static String decode(String strSrc,String encode){
		String strOut="";
		try {
			 strOut = new String(Base64Decoder.decodeToBytes(strSrc),encode);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return strOut;
	}
	public static byte[] decode(String strSrc){
		byte[] bytes;
		bytes = Base64Decoder.decodeToBytes(strSrc);
		return bytes;
	}
	  public static void main(String[] args) throws IOException {
		  //String strSrc=XmlTool.bulidXmlDocByFile(Base64Tool.class.getResource("/action-config.xml").getPath()).asXML();
		  //String strSrc="测试原文";
		  ////System.out.println(strSrc);
		  //String base64Str=Base64Tool.encode(strSrc, "UTF-8");
		  String b="CjxodG1sPgoKCTxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4KCQkkKGZ1bmN0aW9uKCl7CgkJCXZhciBzZXR0aW5nID0gewoJCQkJZGF0YTogewoJCQkJCXNpbXBsZURhdGE6IHsKCQkJCQkJZW5hYmxlOiB0cnVlLAoJCQkJCQlpZEtleTogIm9yZ0NvZGUiLAoJCQkJCQlwSWRLZXk6ICJwYXJlbnRPcmdDb2RlIiwKCQkJCQkJcm9vdFBJZDogIjAiICAKCQkJCQl9LAoJCQkJCWtleTogewoJCQkJCQljaGlsZHJlbjoibm9kZXMiLAoJCQkJCQluYW1lOiJvcmdOYW1lIiwKCQkJCQkJdGl0bGU6Im9yZ05hbWUiLAoJCQkJCQl1cmw6InVybCIKCQkJCQl9CgkJCQl9LAoJCQkJY2FsbGJhY2s6IHsKCQkJCQlvbkNsaWNrOiBmdW5jdGlvbihlL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NDAlO3RleHQtYWxpZ246bGVmdCI+PGlucHV0IGlkPSJidG5fc2F2ZSIgY2xhc3M9ImJ0bi1zYXZlIGJ0bndpZHRoMSIgdHlwZT0iYnV0dG9uIi8+PC90ZD4KCQkJCTwvdHI+CgkJCTwvdGFibGU+CgkJPC9kaXY+Cgk8L2JvZHk+CQkKPC9odG1sPg==";
		  ////System.out.println(base64Str);
		  String deStr=Base64Tool.decode(b,  "UTF-8");
		  System.out.println(deStr);
		  //File file=new File("F:\\test\\star01.jpg");
		  //byte[] bytes=FileTool.getBytes(file);
		  //base64Str=Base64Tool.encode(bytes);
		  ////System.out.println(base64Str);
		  //bytes=Base64Tool.decode(base64Str);
		  //FileTool.saveBytesToFile(bytes, "F:\\test\\star02.jpg");
		  
		  
		  
	}


}
